// ---------------------------------------------------------------------------

#ifndef HttpThreadH
#define HttpThreadH
// ---------------------------------------------------------------------------
#include <Classes.hpp>
#include "IdBaseComponent.hpp"
#include "IdComponent.hpp"
#include "IdHTTP.hpp"
#include "IdTCPClient.hpp"
#include "IdTCPConnection.hpp"
#include "MainForm.h"
#include <map>
// ---------------------------------------------------------------------------
using namespace std;

typedef map<String, String>HashTable;

class THttpThread : public TThread {
private:
	TMemoryStream *stream;
	TIdHTTP *http;
	HashTable list;
	void __fastcall UpdateComplete();

protected:
	void __fastcall Execute();

public:
	__fastcall THttpThread(HashTable list,String dir);
};
// ---------------------------------------------------------------------------
#endif
